package com.water.pojo;

/**
 * @author wsj
 * @version 1.0
 * @description: TODO
 * @date 2022/1/8 16:52
 */
public class Myfactory {

    public Myfactory(){
        System.out.println("=======hello，我是工厂的无参构造方法！==========");
    }
    public Team team(){
        System.out.println("====工厂-实例方法==========");
        return new Team(199,"湖人","洛杉矶");
    }

    public static Team myTeam(){
        System.out.println("====工厂-静态方法=========");
        return new Team(8997,"热火","迈阿密");
    }

}
